package gitee.android.KUI.Utils

import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Path
import android.graphics.RectF

/**
 * @author 程序员Keven
 * 时间 : 2023-01-08
 * 描述 : 图形相关的工具类
 */


public fun clipRound(cavans : Canvas, rectF : RectF, radius : FloatArray , fillColor : Int){
    val path = Path()
    path.addRoundRect(
        rectF ,
        radius,
        Path.Direction.CCW)
    cavans.clipPath(path)
    cavans.drawColor(fillColor);
}